package com.haiya.command.breakfast;

public class Client {
    public static void main(String[] args) {
        Breakfast yunTun = new YunTun();
        Breakfast hunTun = new HunTun();
        Breakfast changFen = new ChangFen();

        System.out.println("早餐店开门了， 服务员开始卖早餐了~~~");
        Waiter waiter = new Waiter();
        waiter.setChangFen(changFen);
        waiter.setHunTun(hunTun);
        waiter.setYunTun(yunTun);

        System.out.println("顾客A: 要一碗 馄饨、一碗云吞: ------------------------");
        waiter.chooseHunTun();
        waiter.chooseYunTun();

        System.out.println("顾客A: 要两碗 肠粉: ------------------------");
        waiter.chooseChangFen();
        waiter.chooseChangFen();
    }
}
